<template>
  <LyHeader :backTitle="backTitle" @goBack="goBack">
    <el-button>111</el-button>
    <el-button>222</el-button>
    <template #actionButton>
      <el-button @click="action()">按钮</el-button>
    </template>
  </LyHeader>
</template>

<script lang='ts' setup>
import { ref } from 'vue'
import { useRouter } from 'vue-router'

const backTitle = '返回11'
const action = () => {
  console.log('scope');
}

const router = useRouter()
const goBack = () => {
  router.back()
}
</script>

<style lang='scss' scoped>

</style>